package com.ag.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;

/**
 * TbUserContact entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "TB_USER_CONTACT", schema = "dbo", catalog = "AGDB")
public class TbUserContact implements java.io.Serializable {
	// Fields

	private String ucId;
	private TbUser tbUser;
	private String ucName;
	private String ucDeptName;
	private String ucDeptAddr;
	private String ucFax;
	private String ucCellphone;
	private String ucTel;
	private String a;
	private String b;
	private String c;
//	private TbUrealGroup group;
	// Constructors

	/** default constructor */
	public TbUserContact() {
	}

	/** full constructor */
	public TbUserContact(TbUser tbUser, String ucName, String ucDeptName,
			String ucDeptAddr, String ucFax, String ucCellphone, String ucTel,
			String a, String b, String c) {
		this.tbUser = tbUser;
		this.ucName = ucName;
		this.ucDeptName = ucDeptName;
		this.ucDeptAddr = ucDeptAddr;
		this.ucFax = ucFax;
		this.ucCellphone = ucCellphone;
		this.ucTel = ucTel;
		this.a = a;
		this.b = b;
		this.c = c;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "uuid.hex")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "UC_ID", unique = true, nullable = false, length = 32)
	public String getUcId() {
		return this.ucId;
	}

	public void setUcId(String ucId) {
		this.ucId = ucId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "U_ID")
	public TbUser getTbUser() {
		return this.tbUser;
	}
	public void setTbUser(TbUser tbUser) {
		this.tbUser = tbUser;
	}
	
//	@ManyToOne(fetch = FetchType.LAZY)
//	@JoinColumn(name = "UC_GROUP")
//	public TbUrealGroup getGroup() {
//		return group;
//	}
//
//	public void setGroup(TbUrealGroup group) {
//		this.group = group;
//	}



	@Column(name = "UC_NAME", length = 100)
	public String getUcName() {
		return this.ucName;
	}

	public void setUcName(String ucName) {
		this.ucName = ucName;
	}

	@Column(name = "UC_DEPT_NAME", length = 100)
	public String getUcDeptName() {
		return this.ucDeptName;
	}

	public void setUcDeptName(String ucDeptName) {
		this.ucDeptName = ucDeptName;
	}

	@Column(name = "UC_DEPT_ADDR", length = 200)
	public String getUcDeptAddr() {
		return this.ucDeptAddr;
	}

	public void setUcDeptAddr(String ucDeptAddr) {
		this.ucDeptAddr = ucDeptAddr;
	}

	@Column(name = "UC_FAX", length = 20)
	public String getUcFax() {
		return this.ucFax;
	}

	public void setUcFax(String ucFax) {
		this.ucFax = ucFax;
	}

	@Column(name = "UC_CELLPHONE", length = 20)
	public String getUcCellphone() {
		return this.ucCellphone;
	}

	public void setUcCellphone(String ucCellphone) {
		this.ucCellphone = ucCellphone;
	}

	@Column(name = "UC_TEL", length = 20)
	public String getUcTel() {
		return this.ucTel;
	}

	public void setUcTel(String ucTel) {
		this.ucTel = ucTel;
	}

	@Column(name = "A", length = 50)
	public String getA() {
		return this.a;
	}

	public void setA(String a) {
		this.a = a;
	}

	@Column(name = "B", length = 50)
	public String getB() {
		return this.b;
	}

	public void setB(String b) {
		this.b = b;
	}

	@Column(name = "C", length = 50)
	public String getC() {
		return this.c;
	}

	public void setC(String c) {
		this.c = c;
	}

}